package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.OrgInfo;

/**
 * 行政区信息表 RowWapper
 * 
 * @日期：2014-5-12 下午2:55:54
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
public class OrgInfoRowWapper implements RowMapper<OrgInfo> {

	@Override
	public OrgInfo mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		OrgInfo vo = new OrgInfo();
		vo.setAdCd(rs.getString("ad_cd"));
		vo.setAdNm(rs.getString("ad_nm"));
		vo.setSlszyNode(rs.getString("slszy_node"));
		vo.setNt(rs.getString("nt"));
		vo.setTs(rs.getDate("ts"));
		return vo;
	}

}
